<div style="display: inline-block; border: solid 1px black">
    <span style="padding-right: 20px; padding-left: 30px">Lorem ipsum dolor sit amet</span>
</div>